package com.mall4j.cloud.product.dto;

import com.mall4j.cloud.product.model.AttrCategory;
import com.mall4j.cloud.product.model.AttrValue;
import com.mall4j.cloud.product.model.Category;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * 属性
 *
 * @author JCM
 * @date 2021-04-23 9:19:00
 */
public class AttrDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private Long attrId;

    @ApiModelProperty("店铺id")
    private Long shopId;

    @ApiModelProperty("属性名称")
    private String name;

    @ApiModelProperty("属性描述")
    private String desc;

    @ApiModelProperty("搜索类型 0：不需要 1：需要")
    private Integer searchType;

    @ApiModelProperty("属性类型 0：销售属性 1：基本属性")
    private Integer attrType;

    @ApiModelProperty("属性值集合")
    private List<AttrValue> attrValues;

    @ApiModelProperty("分类集合")
    private List<Category> categories;

    @ApiModelProperty("分类id集合")
    private List<Long> categoryIds;

    public Long getAttrId() {
        return attrId;
    }

    public void setAttrId(Long attrId) {
        this.attrId = attrId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Integer getSearchType() {
        return searchType;
    }

    public void setSearchType(Integer searchType) {
        this.searchType = searchType;
    }

    public Integer getAttrType() {
        return attrType;
    }

    public void setAttrType(Integer attrType) {
        this.attrType = attrType;
    }

    public List<AttrValue> getAttrValues() {
        return attrValues;
    }

    public void setAttrValues(List<AttrValue> attrValues) {
        this.attrValues = attrValues;
    }

    public List<Category> getCategories() {
        return categories;
    }

    public void setCategories(List<Category> categories) {
        this.categories = categories;
    }

    public List<Long> getCategoryIds() {
        return categoryIds;
    }

    public void setCategoryIds(List<Long> categoryIds) {
        this.categoryIds = categoryIds;
    }

    @Override
    public String toString() {
        return "AttrDTO{" +
                "attrId=" + attrId +
                ", shopId=" + shopId +
                ", name='" + name + '\'' +
                ", desc='" + desc + '\'' +
                ", searchType=" + searchType +
                ", attrType=" + attrType +
                ", attrValues=" + attrValues +
                ", categories=" + categories +
                ", categoryIds=" + categoryIds +
                '}';
    }
}
